package Game;

/**
 * @author lijunhao
 * 2023/7/13 练习
 * @description TODO
 */
public class Equipmengts {
    private String name;
    private int level;
    private String color;
    private String kind;
    private int power;
    private int defence;


    public Equipmengts(){}

    public Equipmengts (String name, int level, String color, String kind, int power, int defence) {
        this.name = name;
        this.level = level;
        this.color = color;
        this.kind = kind;
        this.power = power;
        this.defence = defence;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getLevel() {
        return level;
    }
    public void setLevel(int level) {
        this.level = level;
    }
    public String getColor() {
        return color;
    }
    public void setColor(String color) {
        this.color = color;
    }
    public String getKind() {
        return kind;
    }
    public void setKind(String kind) {
        this.kind = kind;
    }
    public int getPower() {
        return power;
    }
    public void setPower(int power) {
        this.power = power;
    }
    public int getDefence() {
        return defence;
    }
    public void setDefence(int defence) {
        this.defence = defence;
    }

    public String toString() {
        return "Equipments{name = " + name + ", level = " + level + ", color = " + color + ", kind = " + kind + ", power = " + power + ", defence = " + defence + "}";
    }
    public void show(){
        System.out.println("装备的名称："+name);
        System.out.println("装备的等级："+level);
        System.out.println("装备的色系："+color);
        System.out.println("装备的类别："+kind);
        System.out.println("装备的攻击力："+power);
        System.out.println("装备的防御力："+defence);
    }
}
